const express = require('express');
const router = express.Router();

router.get('/forCurrentUser', (req, res) => {
    const content = [];
    for(let i = 1; i <= 5; i++) content.push({
        id: `${i}`,
        code: `CODE${i}`,
        name: `name${i}`,
        dealerId: 'string',
        dealerCode: 'string',
        dealerName: 'string'
    });

    res.json(
        {
            message: '',
            payload: {
                content,
                totalElements: 100,
            }
        }
    );
});

router.get('/forCurrentUser/simple', (req, res) => {
    const content = [];
    for(let i = 1; i <= 5; i++) content.push({
        id: `${i}`,
        code: `CODE${i}`,
        name: `name${i}`,
    });

    res.json(
        {
            message: '',
            payload: {
                content
            }
        }
    );
});

module.exports = router;
